import holder_dialog_1 from './assets/img/holder_dialog_1.png';
import holder_dialog_2 from './assets/img/holder_dialog_2.png';

export default {
  defaultFormData: {
    ALIYUN_IP_APPCODE: '',
    ALIYUN_IP_APPKEY: '',
    ALIYUN_IP_APPSECRET: '',
    ALIYUN_IP_HOST: '',
    ALIYUN_IP_PATH: '',
    ALIYUN_OCR_APPCODE: '',
    ALIYUN_OCR_APPKEY: '',
    ALIYUN_OCR_APPSECRET: '',
    ALIYUN_OCR_PATH: '',
    ALIYUN_OSS_ACCESSKEYID: '',
    ALIYUN_OSS_ACCESSKEYSECRET: '',
    ALIYUN_OSS_BUCKETNAME: '',
    ALIYUN_OSS_ENDPOINT: '',
    ALIYUN_OSS_HOST: '',
    COMPANY_253_APIURL: '',
    COMPANY_253_APPID: '',
    COMPANY_253_APPKEY: '',
    COMPANY_253_KEYTYPE: '',
    COMPANY_253_SEARCHAPIURL: '',
    DINGTALK_AGENT_ID: '',
    DINGTALK_APPID: '',
    DINGTALK_APPKEY: '',
    DINGTALK_REDIRECT_URI: '',
    DINGTALK_AUTHTYPE: '',
    DINGTALK_CORPID: '',
    IM_PROXY_URL: '',
    JE_CALENDAR_FESTIVAL: '[{"code":"CJ","text":"","value":""}]',
    JE_CALENDAR_WORKBEGINTIMEAM: '8',
    JE_CALENDAR_WORKBEGINTIMEPM: '13',
    JE_CALENDAR_WORKDAYS: '',
    JE_CALENDAR_WORKENDTIMEAM: '12',
    JE_CALENDAR_WORKENDTIMEPM: '18',
    JE_CORE_ADMINMENU_ID: '',
    JE_CORE_ADMINMENU_NAME: '',
    JE_CORE_AJAXTIMEOUT: '0',
    JE_CORE_BACKWEBSOCKETURL: '',
    JE_CORE_DEVOPSUSERIDS: '',
    JE_CORE_DEVOPSUSERNAMES: '',
    JE_CORE_ERRORPW: '0',
    JE_CORE_JCAPTCHA: '0',
    JE_CORE_PHONE: '',
    JE_CORE_REGISTERNUM: '0',
    JE_CORE_SERVERRUN: 'ALL',
    JE_CORE_SSOBEAN: '',
    JE_CORE_SSOFLAG: '1',
    JE_CORE_SSOMETHOD: '',
    JE_CORE_TOKENBEAN: '',
    JE_CORE_TOKENMETHOD: '',
    JE_CORE_VERIFY: 'BM',
    JE_CORE_WEBSOCKETURL: '',
    JE_CORE_WEBSOCKETURL4APP: '',
    JE_CORE_WFTYPE: 'window',
    JE_FILES_HIDECOMPANYFILES: '1',
    JE_FILES_HIDEFILES: '1',
    JE_FILES_HIDEMOVEFILES: '1',
    JE_FUNC_CHILDSHOWTYPE: '1',
    JE_ICON_VERSION: '',
    JE_JEPF_VERSION: '',
    JE_PHONE_UPVERSION: '1',
    JE_SERVER_TOKEN: '123456',
    JE_SYSMODE: '0',
    JE_SYS_ADMIN: '',
    JE_SYS_ADMINPERM: '0',
    JE_SYS_ADMINROLESEE: '1',
    JE_SYS_APPLOGIN: '0',
    JE_SYS_APPPERM: '1',
    JE_SYS_BTNLOG: '0',
    JE_SYS_CIRCLE: '1',
    JE_SYS_COMPANYWHERE: '0',
    JE_SYS_COPYRIGHT: '',
    JE_SYS_CSS: '1',
    JE_SYS_DB: 'MYSQL',
    JE_SYS_DDQUICKLOGIN: '1',
    JE_SYS_DEVELOPLOG: '0',
    JE_SYS_DOCADMIN: '',
    JE_SYS_DOCADMINID: '',
    JE_SYS_DOCFILETYPE: '[{"code":"office","text":"","value":""}]',
    JE_SYS_EASYTITLE: '',
    JE_SYS_EMAILLOG: '0',
    JE_SYS_EMAIL_PASSWORD: '',
    JE_SYS_EMAIL_SERVERHOST: '',
    JE_SYS_EMAIL_SERVERPORT: '',
    JE_PUSH_PLATFORM: '',
    JE_SYS_EMAIL_SSL: '1',
    JE_PUSH_CONFIG: '',
    JE_SYS_EMAIL_SERVERVALIDATE: '0',
    JE_SYS_EMAIL_USERNAME: '',
    JE_SYS_ENABLEDHTML: '',
    JE_SYS_ENCRYPT: '0',
    JE_SYS_ENCRYPT_FIELD: 'whereSql,orderSql,tableCode,sql,pkValue,expandSql,parentSql,useOrderSql,funcCode,funcId,permSql,j_query,j_parent',
    JE_SYS_ENCRYPT_KEY1: '',
    JE_SYS_ENCRYPT_KEY2: '',
    JE_SYS_ENCRYPT_KEY3: '',
    JE_SYS_ERRORPHONE: '',
    JE_SYS_ERRORTYPE: '0',
    JE_SYS_EXCEPTION: '0',
    JE_SYS_EXECUITE: '0',
    JE_SYS_FORMWINCLOSEBTN: '1',
    JE_SYS_FULLTITLE: '',
    JE_SYS_FUNCCOLUMNALIGN: '',
    JE_SYS_FUNCFORM: '',
    JE_SYS_FUNCLIMIT: '',
    JE_SYS_GETUILOG: '0',
    JE_SYS_HEADERHTML_DEFAULT: '',
    JE_SYS_HEADERHTML_PLUS: '',
    JE_SYS_HEADERHTML_SAAS: '',
    JE_SYS_HOMEEMPTYHTML: '',
    JE_SYS_IMMSG: '1',
    JE_SYS_INTERNET: '1',
    JE_SYS_JS: '"(function(){↵  	//首页通知弹出销售四连环维护参与人页面↵	window._refersh_sale_salegroup_ = function(slhId,sjId,sjname){↵            if(JE.isNotEmpty(slhId)){↵                var obj=JE.ajax({↵                  url:\'/je/product/crm/customerPortrit/queryRingStatus\',↵                  params:{↵                    ringId:slhId↵                  }↵                });↵                if(obj.success){↵                  var saleGroup = Ext.create(\'PRO.sale.view.SaleGroup\',{backId:slhId,sjId:sjId,sjname:sjname});↵                  JE.win({↵                    title:\'销售四连环团队组建\',↵                    width:1000,↵                    height:600,↵                    items:saleGroup,↵                    autoShow:true↵                  });↵                }else{↵                  JE.alert(obj.obj);↵                }                  ↵                ↵            }↵            ↵        };↵    //首页通知弹出销售四连环表单页面↵    window._refersh_xsslh_form = function(slhId){↵      if(JE.isNotEmpty(slhId)){↵        	var obj=JE.ajax({↵                  	url:\'/je/product/crm/customerPortrit/queryRingStatus\',↵                  	params:{↵                      	ringId:slhId↵                    }↵            });↵        	if(obj.success){↵              JE.showFunc(\'CRM_YXGL_XSSLH\',{type:\'form\',id:slhId,readOnly:true,hideTbar:true,callback:function(panel){↵              	panel.readOnly=false;↵              	panel.setReadOnly(true);↵            }});↵            }else{↵              JE.alert(obj.obj);↵            }↵      }↵    };↵  ↵  	//四连环待处理页面(四连环邀请卡)↵  	window._refersh_xsslhyqk_grid=function(slhId){↵      	if(JE.isNotEmpty(slhId)){↵        	var obj=JE.ajax({↵                  	url:\'/je/product/crm/customerPortrit/queryRingStatus\',↵                  	params:{↵                      	ringId:slhId↵                    }↵            });↵        	if(obj.success){↵              JE.showFunc(\'V_CRM_YXGL_XSSLHRY\',{type:\'grid\',readOnly:true,whereSql:\'and RY_BYQRID =\'+"\'"+JE.USER.id+"\'"+\'and RY_YQZT_CODE in ("YQZ","BFP") and XSSLH_SLHZT_CODE="ZXZ"\'+\'and CRM_YXGL_XSSLH_ID =\'+"\'"+slhId+"\'"});↵            }else{↵              JE.alert(obj.obj);↵            }↵      }↵    };↵  	↵  	//商机表单↵  	window._refersh_xssj_grid=function(sjid){↵      	if(JE.isNotEmpty(sjid)){↵          	var obj=JE.ajax({↵              	url:\'/je/product/crm/customerPortrit/queryOppoStatus\',↵              	params:{oppoId:sjid}↵            });↵          if(obj.success){↵            JE.showFunc(\'CRM_YXGL_XSSJ\',{type:\'form\',readOnly:true,id:sjid,hideTbar:true,callback:function(panel){↵              	panel.readOnly=false;↵              	panel.setReadOnly(true);↵            }});↵          }else{↵            JE.alert(obj.obj);↵          }↵        }↵    }↵})()"',
    JE_SYS_LOCALADDRESS: '',
    JE_SYS_LOGINLOG: '0',
    JE_SYS_LOGO: '',
    JE_SYS_NOTICELOGO: '',
    JE_SYS_MAINCOUNT: '',
    JE_SYS_MENULOCATION: '',
    JE_SYS_MENUTYPE: '',
    JE_SYS_MENUWIDTH: '100',
    JE_SYS_MODELNUM: '',
    JE_SYS_MSGWARN: '1',
    JE_SYS_MULTIMODELS: '',
    JE_SYS_NOTEDIY: 'SYS',
    JE_SYS_NOTELOG: '0',
    JE_SYS_NOTE_COUNT: '',
    JE_SYS_NOTE_PASSWORD: '',
    JE_SYS_NOTE_USER: '',
    JE_SYS_PAGEOFFICE: '0',
    JE_SYS_PASSWORD: '123456',
    JE_SYS_PCLOGIN: '0',
    JE_SYS_PLAYAUDIO: '1',
    JE_SYS_PRODICTIONARY: '0',
    JE_SYS_PROXYSET: '1',
    JE_SYS_QQQUICKLOGIN: '1',
    JE_SYS_QUICKLOGIN: '1',
    JE_SYS_REDIS: '1',
    JE_SYS_RTXIP: '',
    JE_SYS_RTXLOG: '0',
    JE_SYS_RTXPORT: '',
    JE_SYS_SAASHTML: '',
    JE_SYS_SAASJS: '[]',
    JE_SYS_SAVETYPE: '1',
    JE_SYS_SETTINGHTML: '\'<img src="\'+JE.getStaticUrl(\'JE.common.logo-small\')+\'" style="width: 20px;height: 20px;vertical-align: top;"><a href="http://www.jeplus.cn" target="_black;" style="text-decoration: none;color: #a09c96;margin-left: 5px;">JEPLUS.CN INSIDE</a>\'',
    JE_SYS_STARTUP: '',
    JE_SYS_STATICIZE: '1',
    JE_SYS_SYSLOGO: '',
    JE_SYS_SYSTEM: 'JEPaaS',
    JE_SYS_THEME: 'default',
    JE_SYS_TITLE: '',
    JE_SYS_TOPBGCOLOR: '',
    JE_SYS_TOPBGIMG: '',
    JE_SYS_TOPBGIMGX: 'left',
    JE_SYS_TOPBGIMGY: 'top',
    JE_SYS_TOPFONTCOLOR: '#C0D7F8',
    JE_SYS_TOPFONTOCOLOR: '#FFFFFF',
    JE_SYS_TOPMENU_MAXHEIGHT: '',
    JE_SYS_TOPNOREPEAT: '',
    JE_SYS_TOPUSERCOLOR: '#FFFFFF',
    JE_SYS_URLPATTERN: '',
    JE_SYS_USERINFO: '',
    JE_SYS_USERPERM: '1',
    JE_SYS_WFITEMCLICK: '0',
    JE_SYS_WFLIMIT: '',
    JE_SYS_WXQUICKLOGIN: '1',
    JE_TASK_DELAY: '0',
    JE_WXCP_ADMINID: '',
    JE_WXCP_AGENTID: '',
    JE_WXCP_CORPID: '',
    JE_WXCP_CORPSECRET: '',
    JE_WXCP_JOINTITLE: '',
    JE_WXCP_JOINURL: '',
    JE_WXCP_AUTHTYPE: '',
    JE_WXCP_USERCORPSECRET: '',
    NOTE_253_PASSWORD: '',
    NOTE_253_REPORT: '',
    NOTE_253_SENDURL: '',
    NOTE_253_SIGN: '',
    NOTE_253_USERNAME: '',
    QQ_LOGIN_APPID: '',
    QQ_LOGIN_APPKEY: '',
    QQ_LOGIN_APPURL: '',
    SYS_WF: 'CRM_LCSP',
    SY_JECORE: '1',
    WX_APP_ATTACH: '',
    WX_APP_BODY_NAME: '',
    WX_APP_MCH_ID: '',
    WX_APP_NOTIFY_URL: '',
    WX_APP_SPBILL_CREATE_IP: '',
    WX_APP_TRADE_TYPE: 'APP',
    WX_GZH_APPID: '',
    WX_GZH_APPSECRET: '',
    WX_GZH_ENCODINGAESKEY: '',
    WX_GZH_TOKEN: '',
    WX_GZH_URL: '',
    WX_KFPT_APPID: '',
    WX_KFPT_APPSECRET: '',
    WX_LOGIN_APPID: '',
    WX_LOGIN_APPSECRET: '',
    WX_LOGIN_APPURL: '',
    WX_PAY_PC_APP_ID: '',
    WX_PAY_PC_ATTACH: '',
    WX_PAY_PC_KEY_ID: '',
    WX_PAY_PC_MCH_ID: '',
    WX_PAY_PC_SPBILL_CREATE_IP: '',
    WX_PAY_PC_SYS_URL: '',
    WX_PC_ATTACH: '',
    WX_PC_BODY_NAME: '轻云蒜瓣',
    WX_PC_MCH_ID: '1525861581',
    WX_PC_SPBILL_CREATE_IP: '39.105.211.58',
    WX_PC_SYS_URL: 'www.dev.suanbanyun.com',
    WX_TRADE_TYPE: 'NATIVE',
    ZFB_PAY_PC_KEY_ID: '',
    ZFB_PAY_PC_LOG_PATH: '',
    ZFB_PAY_PC_PARTNER: '',
    ZFB_PAY_PC_SELLER_ID: '',
    ZFB_PAY_PC_SIGN_ALGORITHMS: 'SHA1WithRSA',
    ZFB_PAY_PC_SIGN_TYPE: '',
    ZFB_PC_ALI_PUBLIC_KEY: '',
    ZFB_PC_EXTER_INVOKE_IP: '',
    ZFB_PC_KEY: '',
    ZFB_PC_PARTNER: '2088331203373690',
    ZFB_PC_PRIVATE_KEY: '',
    ZFB_PC_SELLER_ID: '2088331203373690',
    ZFB_PC_SIGN_ALGORITHMS: 'SHA1WithRSA',
    ZFB_PC_SIGN_TYPE: 'MD5',
    ZFB_PC_SYS_URL: '',
    'textfield-1065-inputEl': '',
    'textfield-1066-inputEl': '',
    'textfield-1070-inputEl': '',
    'textfield-1072-inputEl': '',
    'textfield-1074-inputEl': '',
    'textfield-1076-inputEl': '',
    'textfield-1079-inputEl': '',
    'textfield-1171-inputEl': '',
    'textfield-1251-inputEl': '',
    'textfield-1253-inputEl': '',
    'textfield-1289-inputEl': '',
    'textfield-1298-inputEl': '',
    'textfield-1308-inputEl': '',
    'textfield-1314-inputEl': '',
    'textfield-1323-inputEl': '',
    'textfield-1350-inputEl': '',
    'textfield-1359-inputEl': '',
    'textfield-1406-inputEl': '',
    'textfield-1415-inputEl': '',
    'textfield-1436-inputEl': '',
    'textfield-1438-inputEl': '',
    'textfield-1493-inputEl': '',
    'textfield-1548-inputEl': '',
    'textfield-1562-inputEl': '',
    'textfield-1759-inputEl': '',
    'textfield-1807-inputEl': '',
    'textfield-1836-inputEl': '',
    'textfield-1923-inputEl': '',
    'textfield-2018-inputEl': '',
    'textfield-2180-inputEl': '',
    'textfield-2204-inputEl': '',
    'textfield-2441-inputEl': '',
    'textfield-4449-inputEl': '',
    'textfield-5864-inputEl': '',
    'textfield-8601-inputEl': '',
    INITPASSWORD: '0', // 是否启动首次登录修改密码
    REGEXP: '', // 密码策略正则表达式
    PROMPT: '', // 密码输入校验提示语
    SYS_SECURITY: '1', // 启用安全模式
    SYS_SECURITY_EXCLUDE_FUNCCODE: '', // 禁用安全模式的功能
    SYS_SECURITY_EXCLUDE_URLS: '', // 禁用安全模式的接口
    SYS_SECURITY_EXCLUDE_PARAM: '', // 安全模式下禁用参数
  },
  checkboxItems() {
    let arr = '';
    // 运行设置-日志开关
    arr += 'JE_SYS_EXCEPTION,JE_SYS_EXECUITE,JE_SYS_LOGINLOG,JE_SYS_NOTELOG,JE_SYS_EMAILLOG,JE_SYS_BTNLOG,JE_SYS_DEVELOPLOG,';
    // 运行设置-权限开关
    arr += 'JE_SYS_ADMINPERM,JE_SYS_COMPANYWHERE,JE_SYS_USERPERM,JE_SYS_PROXYSET,JE_SYS_ADMINROLESEE';
    // 运行设置-其他开关
    arr += 'JE_SYS_INTERNET,JE_SYS_IMMSG,JE_SYS_PAGEOFFICE,JE_SYS_PRODICTIONARY,JE_SYS_PLAYAUDIO';
    // 运行设置-加密设定
    arr += 'JE_SYS_ENCRYPT';
    // 登录服务-登录设定
    arr += 'JE_SYS_PCLOGIN,JE_SYS_APPLOGIN,JE_CORE_SSOFLAG,JE_SYS_QUICKLOGIN,JE_SYS_WXQUICKLOGIN,JE_SYS_QQQUICKLOGIN,JE_SYS_DDQUICKLOGIN,INITPASSWORD';
    // 消息服务-邮箱服务使用身份验证
    arr += 'JE_SYS_EMAIL_SERVERVALIDATE';
    // 消息服务-文档设定
    arr += 'JE_FILES_HIDEFILES,JE_FILES_HIDECOMPANYFILES,JE_FILES_HIDEMOVEFILES';
    return arr;
  },
  str2json() {
    let arr = [];
    // 运行设置-启动服务执行,URL过滤
    arr = arr.concat(['JE_SYS_STARTUP', 'JE_SYS_URLPATTERN', 'SYS_SECURITY_EXCLUDE_URLS']);
    // arr += 'JE_SYS_STARTUP,JE_SYS_URLPATTERN,SYS_SECURITY_EXCLUDE_URLS';
    // 文档管理-文件格式
    arr = arr.concat(['JE_SYS_DOCFILETYPE']);
    // arr += 'JE_SYS_DOCFILETYPE';
    // 工作服务-节假日
    arr = arr.concat(['JE_CALENDAR_FESTIVAL']);
    // arr += 'JE_CALENDAR_FESTIVAL';
    return arr;
  },
  str2list() {
    let arr = '';
    // 登录服务-登录方式
    arr += 'JE_CORE_VERIFY,JE_CALENDAR_WORKDAYS,JE_PUSH_PLATFORM';
    return arr;
  },
  datePicker() {
    let arr = '';
    // 工作服务-节假日
    arr += 'JE_CALENDAR_FESTIVAL';
    return arr;
  },
  hiddenItem() {
    const arr = 'JE_SYS_THEME,JE_SYS_EASYTITLE,JE_SYS_FULLTITLE,JE_SYS_HOMEEMPTYHTML,JE_SYS_ENABLEDHTML,JE_SYS_HEADERHTML_PLUS,JE_SYS_HEADERHTML_DEFAULT,JE_SYS_HEADERHTML_SAAS,JE_SYS_TOPBGCOLOR,JE_SYS_TOPFONTCOLOR,JE_SYS_TOPFONTOCOLOR,JE_SYS_TOPUSERCOLOR,JE_SYS_TOPNOREPEAT,JE_SYS_TOPBGIMGX,JE_SYS_TOPBGIMGY,JE_SYS_USERINFO,JE_SYS_MODELNUM,JE_SYS_MENUWIDTH,JE_SYS_TOPMENU_MAXHEIGHT,JE_SYS_MENUTYPE,JE_SYS_MENULOCATION,JE_SYSMODE,JE_CORE_WFTYPE,JE_SYS_GETUILOG,JE_SYS_RTXLOG,JE_SYS_IMMSG,JE_CORE_JCAPTCHA,JE_SYS_STATICIZE,JE_SYS_APPPERM,JE_SYS_CIRCLE,JE_SYS_MSGWARN,JE_SYS_WFITEMCLICK,JE_SYS_MAINCOUNT,JE_JEPF_VERSION,JE_SYS_ENCRYPT_FIELD,JE_CORE_PHONE,JE_TASK_DELAY,JE_CORE_REGISTERNUM,JE_SYS_SETTINGHTML,JE_SYS_SAASHTML,JE_SYS_SAASJS,JE_ICON_VERSION,WX_PAY_PC_ATTACH,ZFB_PAY_PC_SIGN_ALGORITHMS,ZFB_PC_PRIVATE_KEY,ZFB_PC_ALI_PUBLIC_KEY,ZFB_PC_KEY,ZFB_PC_SIGN_TYPE,JE_SYS_FUNCLIMIT,JE_SYS_FUNCFORM,JE_SYS_WFLIMIT,JE_SYS_FUNCCOLUMNALIGN,JE_SYS_RTXIP,JE_SYS_RTXPORT,JE_SYS_TOPBGIMG';
    return arr;
  },
  holderText() {
    const data = {
      JE_SYS_URLPATTERN: `<h3>URL过滤</h3>
        <p>将系统的访问链接访问权限放开，支持通配符**。如：/je/project/demo**表示这个链接以下所有都可以访问 </p>
        <p>系统访问链接都是必须要登录之后可以访问的，但是在指定业务场景的接口是可以不登录可以访问的，如登录、发送验证码。</p>`,
      JE_SYS_MULTIMODELS: `<h3>批量加载模型</h3>
        <p>平台的表会对应一个Model，前端用到了就会去加载该模型。</p>
        <p>如首页有5个模块都分别用到了不用的表，会请求5次。</p>
        <p>在这里把表名1,表名2设定上，系统会请求1次把5个模型请求回来。主要是提升性能使用。</p>`,
      JE_SYS_ERRORTYPE: `<h3>前台采用弹窗提醒，去除调试提醒</h3>
        <p>前端错误提醒分为两种, 改配置设置为是 则 表示系统上线,否为研发。</p>
        <p>1.研发的时候，报错之后我们应该看到错误消息以及异常消息</p>
        <img src="${holder_dialog_1}" />
        <p>2.系统上线的时候，报错之后，我们应该提醒系统出错了，请联系管理员这样的消息</p>
        <img src="${holder_dialog_2}" />`,
    };
    return data;
  },
};
